package com.itheima.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.exceptions.BusinessException;
import com.itheima.pojo.Diary;

import java.util.List;


public interface DiaryService {

    /**
     * 分页查询
     * @param pageNum  查询页码
     * @param pageSize  每页显示条数
     * @param queryString   检查项编号或者名称
     * @return  分页查询返回结果
     */
    PageResult findPage(int pageNum, int pageSize, String queryString);

    List<Diary> findAll();

    void add(Diary diary) throws BusinessException;

    void update(Diary diary) throws BusinessException;

    void delete(int id) throws BusinessException;



    void upload(List<Diary> diarys)throws BusinessException;
}
